import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import VueRouter from 'vue-router';



import axios from 'axios';
Vue.prototype.$axios=axios;

Vue.config.productionTip = false
Vue.use(ElementUI)

Vue.use(VueRouter)
const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push (location){
  return originalPush.call(this, location).catch(err => err)
}

const routes=[{
  path:'/',
  redirect:'/home'
}]
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  render: h =>h(App)
})
